package com.laolang.shop.modules.product.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.laolang.shop.modules.product.entity.ProductCategory;
import com.laolang.shop.modules.product.pojo.category.admin.vo.ProductCategoryAdminTreeVo;

import java.util.List;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/3 0:57
 */
public interface ProductCategoryService extends IService<ProductCategory> {
    List<ProductCategoryAdminTreeVo> listByParentId(Long parentId);

    PageInfo<ProductCategory> page(Integer page, Integer size, Wrapper<ProductCategory> queryWrapper);
}
